package magicloan.auctionpocket.ui.base;

import android.app.Activity;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import java.util.ArrayList;

/**
 * Created by hechao on 2018/1/26.
 */
public  class MyBaseAdapter extends BaseAdapter {

    protected Context mContext ;
    protected Activity mActivity ;
    protected ArrayList mList ;

    public MyBaseAdapter(Activity context){
        mContext = context ;
        mActivity = context ;
    }

    public void setDatas(ArrayList mList){
        this.mList = mList ;
    }

    @Override
    public int getCount() {
        return mList==null?0:mList.size();
    }

    @Override
    public Object getItem(int position) {
        return null;
    }

    @Override
    public long getItemId(int position) {
        return 0;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        return null;
    }
}